﻿using System;
using System.Collections.Generic;
using LuxuryResort.DAO;
using LuxuryResort.Entity;

namespace LuxuryResort.BIZ
{
    public class RoomBiz : BaseBiz, IRoomBiz
    {
        private readonly RoomDAO _roomDAO = new RoomDAO();

        public Room GetRoomById(Guid id, Guid userId, Guid resortId)
        {
            return _roomDAO.GetRoom(id, userId, resortId);
        }

        public List<Room> GetRooms(Guid userId, Guid resortId)
        {
            return _roomDAO.GetRooms(userId, resortId);
        }

        public List<Room> GetAvailableRooms(Guid userId, Guid resortId, DateTime checkin, DateTime checkout,
            string roomType)
        {
            return _roomDAO.GetAvailableRooms(userId, resortId, checkin, checkout, roomType);
        }
    }
}